#------------------------------------------------------------------------------
# Less configurations
# WARNING: Don't touch the '#env' and '#command' lines, they are parsed by less
#------------------------------------------------------------------------------

# Default command-line options
#------------------------------------------------------------------------------
# -i: ignore case
# -R: Output ANSI and OSC 8 in raw form
# -s: Consecutive blank lines are collapsed into one
# --incsearch: incremental search
# --save-marks: store less marks in a history file

#env
LESS= -i -s -R --incsearch --save-marks

# Vim-like keybindngs
#------------------------------------------------------------------------------

#command

# Scroll two lines at a time
j noaction 2\n
k noaction 2^K

J forw-scroll
K back-scroll
{ back-screen
} forw-screen

# Move through files
l noaction :n
h noaction :p

# Search for first word in lines
s forw-search \^\\s*
